
public aspect SomeAspect {
	
	pointcut p1(Object x) : call(public void *.m*(..)) && args(x) &&
	isType(x, A);
	//if(A.class.isInstance(i));
	//if(5>2);
	
	before(Object y) : p1(y) {
		System.out.println("Objeto da classe A :" + y);
	}
	
	pointcut p2(Object i) : call(public void *.m*(..)) && args(i) &&
	isType(i, B);
	// if(B.class.isInstance(i));
	//if(true);
	
	before(Object z) : p2(z) {
		System.out.println("Objeto da classe B :" + z);
	}

	
}

